package com.itheima.jihejinjie;

import java.util.ArrayList;
import java.util.Collections;

/**
 * @author zhangbaiyan
 * @date 2024-09-12 19:52
 * @description:
 * @version:
 */
public class test {
    public static void main(String[] args) {
        /*班级里有N个学生,学生属性:姓名,年龄.性别.
        实现随机点名器*/
//
//        ArrayList<String> list = new ArrayList<>();
//        Collections.addAll(list, "张三", "李四", "王五", "赵六", "钱七","反显","犯贱","筑紫腾","送盒饭");
//        //3.随机点名
//        Collections.shuffle(list);
//
//        System.out.println(list.getFirst());
        String s = "python";
        String[] arr = {"张三", s};
        s ="java";
        arr= new String[]{"张三", s};
        for (String string : arr) {
            System.out.println(string);
            System.out.println(string);

        }
        for (String string : arr) {
            System.out.println(string);

        }
    }
}
